//package nat;
//
//import java.io.BufferedReader;
//import java.io.IOException;
//import java.io.InputStream;
//import java.io.InputStreamReader;
//import java.net.ServerSocket;
//import java.net.Socket;
//import java.nio.charset.StandardCharsets;
//
///**
// * @Author: Miyako
// * @Date: 2024-07-18-16:20
// * @Description: 服务端
// */
//public class NatSever {
//    public static void main(String[] args) throws IOException {
//        ServerSocket sS = new ServerSocket(8888);
//            System.out.println("等待连接....");
//            Socket sook = sS.accept();
//            System.out.println("连接成功");
////                InputStreamReader in = new InputStreamReader(sook.getInputStream());
////            InputStream in = sook.getInputStream();
//            BufferedReader rd = new BufferedReader(new InputStreamReader(sook.getInputStream(), StandardCharsets.UTF_8));
//            String str ;
//            while ((str=rd.readLine()) != null) {
//                System.out.println("接收信息："+str);
//            }
//
//
//
//    }
//}
